import request from '@/utils/request'

// 查询套餐审核列表
export function listCarPackage(query) {
  return request({
    url: '/audit/carPackage/list',
    method: 'get',
    params: query
  })
}

// 查询套餐审核详细
export function getCarPackage(id) {
  return request({
    url: '/audit/carPackage/' + id,
    method: 'get'
  })
}

// 新增套餐审核
export function addCarPackage(data) {
  return request({
    url: '/audit/carPackage',
    method: 'post',
    data: data
  })
}

// 修改套餐审核
export function updateCarPackage(data) {
  return request({
    url: '/audit/carPackage',
    method: 'put',
    data: data
  })
}

// 删除套餐审核
export function delCarPackage(id) {
  return request({
    url: '/audit/carPackage/' + id,
    method: 'delete'
  })
}
// 发布审核提交按钮
export function startAuditServiceItem(data) {
  return request({
    url: '/audit/carPackage/startAuditServiceItem',
    method: 'post',
    data: data
  })
}

// 查询我的待办列表
export function listToDoCarPackage(query) {
  return request({
    url: '/audit/carPackage/listToDoCarPackage',
    method: 'get',
    params: query
  })
}
// 审核套餐审核
export function auditAuditServiceItem(data) {
  return request({
    url: '/audit/carPackage/auditAuditServiceItem',
    method: 'put',
    data: data
  })
}